<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
	<title></title>
	<script type="text/javascript" src="__dotnar_lib_base_url__/js/lib/require.min.js"></script>
	<script type="text/javascript" src="__dotnar_lib_base_url__/js/lib/loader.js"></script>
    <script type="text/javascript" src="/js/require.config.js"></script>
    <script type="text/javascript">
    require(["core"], function() {
    	require(["./js/pages/all-goods","./js/pages/top"],function (argument) {
        	window.removeLoader();       	
    	});
    });
    </script>
</head>
<body>
	<div style="display:none;" id="jSouperApp" class="_pc">
		{{#include "pages/default/top.html"}}
		<!-- nav-bar -->
		{{#include "./pages/default/nav-bar.html"}}

		<xmp>
			<div class="mainindex">
				<div class="goods-type">
					<div id="left">
					<!-- 每页显示12个商品 -->
					<h1>{{$Cache.goods_info.type}}</h1>
					<div class="goods">
						{{#each goods}}
							{{#> "main-goods-test"}}
						{{/each}}
					</div>

					<!-- 翻页 -->
					<div id="page_turn">
						<div id="pre_page">
							{{#if $Cache.current_page_num!=0}}
							<a title="前一页" href="/all-goods-beta.html#?id={{$Top.$Cahce.goods_list_type}}&page={{$Cache.current_page_num-1}}&num={{$Cache.goods_pre_num}}"><i name="pre_page" class="icon-arrow-left"></i></a>
							{{/if}}
						</div>

						<div id="page_num">
							{{#each $Cache.page_num}}
								{{#if $Index==$Top.$Cache.current_page_num}}
								[当前页：{{~~$Index+1}}]
								{{#else}}
								<a href="/all-goods-beta.html#?id={{$Top.$Cahce.goods_list_type}}&page={{$Index}}&num={{$Top.$Cache.goods_pre_num}}">
								<span>{{~~$Index+1}}</span>
								</a>
								{{/if}}
							{{/each}}
						</div>

						<div id="next_page">
							{{#if $Cache.page_num.length>$Cache.current_page_num+1}}
							<a title="后一页" href="/all-goods-beta.html#?id={{$Top.$Cahce.goods_list_type}}&page={{$Cache.current_page_num+1}}&num={{$Cache.goods_pre_num}}"><i name="next_page" class="icon-arrow-right"></i></a>
							{{/if}}
						</div>
					</div>

					</div>

				</div>

			</div>
		</xmp>

		{{#include './pages/default/bottom.html'}}
	</div>
</body>
</html>